]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dbus: Add a read-only org.gnome.Shell.Mode property
authorDebarshi Ray <debarshir@gnome.org>
Thu, 29 Nov 2012 18:17:51 +0000 (19:17 +0100)
committerDebarshi Ray <debarshir@gnome.org>
Fri, 30 Nov 2012 16:28:34 +0000 (17:28 +0100)
This is meant to expose the global.session_mode to applications such
as the gnome-tweak-tool, which would need it to differentiate between
the vanilla GNOME Shell mode and the fallback replacement mode.

https://bugzilla.gnome.org/show_bug.cgi?id=689300

js/ui/shellDBus.js

index b4d896615bcce1567231db4ea155ea3a1de69735..6b88baf252e922af3ba2541b60150b5586c1475f 100644 (file)
@@ -46,6 +46,7 @@ const GnomeShellIface = <interface name="org.gnome.Shell">
     <arg type="i" direction="in" name="width"/>
     <arg type="i" direction="in" name="height"/>
 </method>
+<property name="Mode" type="s" access="read" />
 <property name="OverviewActive" type="b" access="readwrite" />
 <property name="ShellVersion" type="s" access="read" />
 </interface>;
@@ -186,6 +187,8 @@ const GnomeShell = new Lang.Class({
         flashspot.fire();
     },
 
+    Mode: global.session_mode,
+
     get OverviewActive() {
         return Main.overview.visible;
     },